<?php

// +----------------------------------------------------------------------
// | [ Super WebRobot ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.xlogs.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed http://www.apache.org/licenses/LICENSE-2.0
// +----------------------------------------------------------------------
// | Author: WispX <mnxiong@qq.com>
// +----------------------------------------------------------------------

//设置全局常量，用来防止直接访问内部文件
define('SUROBOT', 'SUROBOT');

//禁止输出任何错误信息
#error_reporting(0);

//设置系统根目录
define('ROOT', str_replace("\\", "/", dirname(__FILE__) . '/'));

//加载系统目录配置
require ROOT . 'system/config/dirconfig.php';

//加载系统配置
$config = require __CONFIG__ . 'config.php';

//加载静态工具类
require __OTHER__ . 'functions.php';

//初始化默认接口
if(Fun::Equals(Fun::GetParam('server'), '')) die(header('location: ./index.php?server=tuling'));

//加载操作公用静态类
require __PER__ . 'CommonPer.php';

//加载模型
require __MODELS__ . 'index.php';